package br.elsa.survey.domain.questions;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "discursive_questions", schema = "survey")
@DiscriminatorValue("DISCURSIVE_QUESTION")
public class DiscursiveQuestion extends Question {

	private static final long serialVersionUID = -2614743362136486326L;

	@Column(name = "answer_max_length")
	private int answerMaxLength;

	@Column(name = "empty_answer_enabled")
	private boolean emptyAnswerEnabled;

	public int getAnswerMaxLength() {
		return answerMaxLength;
	}

	public void setAnswerMaxLength(int answerMaxLength) {
		this.answerMaxLength = answerMaxLength;
	}

	public boolean isEmptyAnswerEnabled() {
		return emptyAnswerEnabled;
	}

	public void setEmptyAnswerEnabled(boolean emptyAnswerEnabled) {
		this.emptyAnswerEnabled = emptyAnswerEnabled;
	}
}
